/**
 * 
 */
package cn.hbu.zlfw.admin.service;

import java.util.List;
import java.util.Map;

import cn.hbu.zlfw.admin.entity.Expert;
import cn.hbu.zlfw.common.base.service.BaseService;
import cn.hbu.zlfw.common.util.PageModel;
import cn.hbu.zlfw.research.entity.Researcher;

/**
 * @ClassName: ExpertService
 * @Description: 专家service接口
 * @author tiddar
 * @date 2018年8月9日
 *
 */

public interface ExpertService extends BaseService<Expert, String> {
	/**
	 * 
	  * @Title: getExpertByParam 
	  * @Description: 条件查询专家
	  * @return Expert 
	  * @throws
	 */
	Expert getExpertByParam(Map<String, Object> params);
	/**
	 * 
	 * @Title: listAllScienceByParamsToUnit 
	 * @Description: 分页条件查询本单位所有专家
	 * @return PageModel<Expert> 
	 * @throws
	 */
	PageModel<Expert> listAllScienceByParamsToUnit(PageModel<Expert> pageModel, String userName, Integer schoolType);
	/**
	 * @param pageModel 
	 * 
	 * @Title: listExpertByParamsToUnit 
	 * @Description: 单位管理员查询本单位所有专家信息
	 * @return PageModel<Expert> 
	 * @throws
	 */
	PageModel<Expert> listExpertByParamsToUnit(PageModel<Expert> pageModel, String userName, String department, Integer schoolType);
	/**
	 * 
	 * @Title: getExpertToUpdate 
	 * @Description: 检测修改后的手机号是否已经被其他人已经注册
	 * @return Expert 
	 * @throws
	 */
	Expert getExpertToUpdate(String phoneNumber, String id);
	/**  
	
	 * <p>Title: findResearcherTologin</p>  
	
	 * <p>Description: </p>  
	
	 * @param phoneNumber
	 * @param password
	 * @return  
	
	 */  
	Researcher findExpertTologin(String phoneNumber, String password);

}
